<template>
    <bi-tab>
        <bi-tab-item label="商品">
            <select-goods  @callback="setValue"></select-goods>
        </bi-tab-item>
        
        <bi-tab-item label="分类">
            <select-cate  @callback="setValue"></select-cate>
        </bi-tab-item>
        
        <bi-tab-item label="优惠券">
        </bi-tab-item>
        <bi-tab-item label="设计页面">
            <design-page @callback="setValue"></design-page>
        </bi-tab-item>
        <bi-tab-item label="系统页面">
            <system-page  @callback="setValue"></system-page>
        </bi-tab-item>
        <bi-tab-item label="全局变量">
            <global-variable  @callback="setValue"></global-variable>
        </bi-tab-item>
        
    </bi-tab>
</template>

<script>
import selectGoods from './goods.vue';
import selectCate  from './cate.vue';
import systemPage from './system-page.vue';
import designPage from './design-page.vue';
import globalVariable from './variable.vue';
export default{
    components:{
        selectGoods,
        selectCate,
        systemPage,
        designPage,
        globalVariable
    },
    methods:{
        setValue(value,title){
            this.dialog.callback(value,title);
            this.dialog.close();
        }
    },
    dialog:{
        title:'选择链接',
        width:600,
        okButton:false
    },
}
</script>